package com.zjj.dao;

import com.zjj.pojo.Person;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface PersonMapper {
    void findPersonById(int id);
    void findPersonById2(int id);

    @Select("SELECT * FROM tb_person WHERE id = #{id}")
    @Results({
            @Result(property = "card", column = "card_id",
                    one = @One(select = "com.zjj.dao.IdCardMapper.selectIdCardById") )})
    Person selectPersonById(int id);


}
